
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <style>
    body {
      perspective: 500px;
    }
    .box {
      
      position: relative;
      width: 300px;
      height: 300px;
      margin: 200px auto;
      /* overflow: hidden; */
      transition: all 2s;
      transform-style: preserve-3d;
    }
    .box:hover {
      transform: rotateY(180deg);
    }
    .one,
    .two {
      position: absolute;
      top: 0;
      left: 0;
      width: 300px;
      height: 300px;
      line-height: 300px;
      text-align: center;
      color: #fff;
      font-size: 26px;
      border-radius: 50%;
    }
    .one {
      background-color: #0ff;
      /* z-index: 1; */
    }
    .two {
      background-color: pink;
      transform: rotateY(180deg);
    }
  </style>
  <body>
    <div class="box">
      <div class="one">黑马程序员</div>
      <div class="two">前端60期大彭导</div>
    </div>
  </body>
</html>
